/*
 * Created on 2005-10-11
 *
 */
package com.hd123.rumba.catalog;

import com.hd123.rumba.exception.BusinessException;
import com.hd123.rumba.runtime.IBaseEntity;

/**
 * @author caili
 */
public interface ICatalog extends IBaseEntity {
  public String getCode()  throws BusinessException;

  public void setCode(String code) throws BusinessException;

  public String getItemType() throws BusinessException;

  public void setItemType(String itemType) throws BusinessException;

  public int getLevel1Length() throws BusinessException;

  public void setLevel1Length(int level1Length) throws BusinessException;

  public int getLevel2Length() throws BusinessException;

  public void setLevel2Length(int level2Length) throws BusinessException;

  public int getLevel3Length() throws BusinessException;

  public void setLevel3Length(int level3Length) throws BusinessException;

  public int getLevel4Length() throws BusinessException;

  public void setLevel4Length(int level4Length) throws BusinessException;

  public Boolean getIsMaster() throws BusinessException;

  public void setIsMaster(Boolean isMaster) throws BusinessException;
  
  public void setMaster(Boolean isMaster) throws BusinessException;

  public String getName() throws BusinessException;

  public void setName(String name) throws BusinessException;

  public static final String PRODUCTMASTER = "PRODUCTMASTER";

  public static final String CAPTION_CLASS = "目录";
  public static final String CAPTION_CODE = "代码";
  public static final String CAPTION_NAME = "名称";
  public static final String CAPTION_ITEMTYPE = "对象类型";
  public static final String CAPTION_ISMASTER = "是否主目录";
  public static final String CAPTION_LEVEL1LENGTH = "1级长度";
  public static final String CAPTION_LEVEL2LENGTH = "2级长度";
  public static final String CAPTION_LEVEL3LENGTH = "3级长度";
  public static final String CAPTION_LEVEL4LENGTH = "4级长度";

}
